﻿using UnityEngine;
using System.Collections;

public class FollowPlayer : MonoBehaviour {

	Player _player;

	// Use this for initialization
	void Start () {
		_player = GameObject.FindGameObjectWithTag ("Player").GetComponent<Player> ();
	}
	
	// Update is called once per frame
	void Update () {
		transform.position = new Vector3(_player.transform.position.x, _player.transform.position.y, transform.position.z);
	}
}
